import request from '@/utils/request';

// 保存经纪人降级设置
export function downSetting (data) {
  return request({
    url: 'v1/broker/downSetting',
    method: 'post',
    data: data
  });
}
// 添加经纪人等级
export function addLevel (data) {
  return request({
    url: 'v1/broker/add',
    method: 'post',
    data: data
  });
}
// 经纪人列表
export function brokerList (params) {
  return request({
    url: 'v1/broker/brokerList',
    method: 'get',
    params
  });
}
// 经纪人团队业绩列表
export function performance (params) {
  return request({
    url: 'v1/broker/teamPerformanceList',
    method: 'get',
    params
  });
}
// 经纪人团队列表
export function teamList (params) {
  return request({
    url: 'v1/broker/teamList',
    method: 'get',
    params
  });
}
// 经纪人等级列表
export function levelList (params) {
  return request({
    url: 'v1/broker/brokerLevelList',
    method: 'get',
    params
  });
}
// 编辑经纪人等级
export function brokerEdit (data) {
  return request({
    url: 'v1/broker/edit',
    method: 'post',
    data: data
  });
}
// 获取经纪人降级设置
export function getDownSetting (params) {
  return request({
    url: 'v1/broker/getDownSetting',
    method: 'get',
    params
  });
}
